//
//  LogicTest1.m
//  OR_1
//
//  Created by Luboš Kulič on 7/30/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "XMLParserTest.h"
#import "ORDataItem.h"



@implementation XMLParserTest




- (void) setUp {
	NSLog(@"XMLParser alloc");
	parser = [XMLParser alloc] ;
}

- (void) tearDown {
	[parser autorelease];//
}

- (void) testCreateParser {
	
	STAssertNotNil(parser, @"parser nil");
//	void method - creating done in setUp method
    
}

- (void) testParseDoc {
	NSDictionary *ret = [parser parse:[NSData dataWithContentsOfFile:@"testData.xml"]];
	
	STAssertNotNil(ret, @"Parser.parse returned nil");
	
	NSLog(@"Parsed dict: %@", ret);
	
}

-(void) testORItem {
	ORDataItem * tst = [[ORDataItem alloc] init];
}


//TODO - test all OR data items for proper element names and registration



@end
